// 会议记录中心
import { role } from '@/utils/const/constant'

export default (layout) => {
  return {
    path: '/meeting',
    component: layout,
    redirect: '/meeting/index',
    meta: {
      title: 'meeting',
      icon: 'huiyi',
      roles: [role.admin]
    },
    children: [
      {
        path: '/meeting/index',
        component: () =>
          import(/* webpackChunkName: "meeting" */ '@/views/meeting/index'),
        name: 'meeting',
        meta: {
          title: 'meetingRecord',
          icon: 'lianxi2hebing_jilu',
          roles: [role.admin]
        }
      },
      {
        path: '/meeting/record',
        component: () =>
          import(/* webpackChunkName: "meeting" */ '@/views/meeting/record'),
        name: 'record',
        meta: {
          title: 'meetingHistory',
          icon: 'lishi',
          roles: [role.admin]
        }
      }
    ]
  }
}
